import { Controller, Get, Inject } from '@nestjs/common'
import { AppService } from './app.service'
import { UserService } from './user/user.service'
@Controller('get')
export class AppController {
  //这里得注入自定义的名称
  constructor(
    private readonly userService: UserService,
  ) {}

  @Get('hello')
  getHello(): string {
    return this.userService.findAll()
  }
}
  